import request from '@/utils/request'

export function getInfo() {
  return request({
    url: '/user/getInfo',
    method: 'get',
    params: {}
  })
}

export function updateUserInfo(user) {
  return request.put('/user/updateUserInfo', user)
}

export function getRoles() {
  return request({
    url: '/user/getRoles',
    method: 'get',
    params: {}
  })
}
